package com.example.springcloudwinter.feign;

import com.example.springcloudwinter.bo.BusinessBo;
import com.example.springcloudwinter.dto.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient (name = "business-server", fallback = BusinessFeignClientCallBack.class)
public interface BusinessFeignClient {
    
    @GetMapping ("/business/info/{businessId}")
    ResultEntity<BusinessBo> getBusinessById (@PathVariable ("businessId") int businessId);
}
